/**
 *
 * @author 
 *
 */
class Page8 extends egret.Sprite{
    private _main: Main;
    public constructor(main: Main) {
        super();
        this._main = main;
        
        this.addEventListener(egret.TouchEvent.TOUCH_TAP,this.thisClick,this);
    }
    
    private thisClick(e: egret.TouchEvent): void {
        this._main.Remove(this);
    }
    
    public start(): void {
        var bg1: eui.Image = new eui.Image;
        bg1.source = "8_1_png";
        this.addChild(bg1);

        var bg2: eui.Image = new eui.Image;
        bg2.source = "8_2_png";
        bg2.x = 375,
        bg2.y = 100,
        this.addChild(bg2);

        var bg3: eui.Image = new eui.Image;
        bg3.source = "8_3_png";
        bg3.x = 225,
        bg3.y = 200,
        this.addChild(bg3);
        
        var bg4: eui.Image = new eui.Image;
        bg4.source = "8_4_png";
        bg4.x = 175,
        bg4.y = 375,
        this.addChild(bg4);
    }
}
